import React from 'react';
import { Select } from 'antd';
const { Option } = Select;
const Selects = (props) => {
    let { defaultValue, options ,selectName} = props;
    return (
        <div>
            <Select defaultValue={defaultValue} style={{ width: 120 }} onChange={selectName}>
                {
                    options.map((v, i) => {
                        return <Option key={i} value={v}>{v}</Option>
                    })
                }
            </Select>
        </div>
    );
}
//默认props
Selects.defaultProps = {
    options: [],
    selectName:Function
}
export default Selects;

